-- GENERATED SPELL FOR [Buru Egg] --


function spell0_15514(pUnit, Event) --@Egg Explosion,Self--
pUnit:FullCastSpellOnTarget(19593,pUnit)
pUnit:RegisterEvent('Sorts_15514', 3338, 1)
end

function spell1_15514(pUnit, Event) --@Summon Hive\'Zara Hatchling,Self--
pUnit:FullCastSpellOnTarget(1881,pUnit)
pUnit:RegisterEvent('Sorts_15514', 544, 1)
end

function Sorts_15514(pUnit, Event)
local choix_sorts_15514 = math.random(0, 1)
if choix_sorts_15514 == 0 then
pUnit:RegisterEvent('spell0_15514', 1, 1)
end
if choix_sorts_15514 == 1 then
pUnit:RegisterEvent('spell1_15514', 1, 1)
end
end

function mob15514_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15514', math.random(1500, 3000), 1)
end

function mob15514_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15514_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15514_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15514, 1, 'mob15514_Action')
RegisterUnitEvent(15514, 2, 'mob15514_Leave')
RegisterUnitEvent(15514, 3, 'mob15514_Kill')
RegisterUnitEvent(15514, 4, 'mob15514_Die')
